package com.pigcloud.sop.gateway.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.FieldNameConstants;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author wangfm
 * @since 2024-01-03
 */
@Data
@FieldNameConstants
@TableName("monitor_info_error")
@ApiModel("MonitorInfoError")
public class MonitorInfoError {
    @TableId("id")
    private Long id;
    @ApiModelProperty("错误id,md5Hex(instanceId + routeId + errorMsg)")
    @TableField("error_id")
    private String errorId;

    @ApiModelProperty("实例id")
    @TableField("instance_id")
    private String instanceId;

    @TableField("route_id")
    private String routeId;

    @TableField("error_msg")
    private String errorMsg;

    @ApiModelProperty("http status，非200错误")
    @TableField("error_status")
    private Integer errorStatus;

    @ApiModelProperty("错误次数")
    @TableField("count")
    private Integer count;

    @TableField("is_deleted")
    private Integer isDeleted;

    @TableField("create_time")
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;


}
